package com.demo.mq.service;

import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Component;

@Component
public class KafkaConsumer {
    @KafkaListener(id = "foo", topics = "kafka-boot")
    public void listen1(String foo) {
        System.out.println("message content  " + foo);
    }
}
